package com.efast.dmom.equipment.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.dmom.equipment.bean.EquipIdsParamBean;
import com.efast.dmom.equipment.service.maintain.IEquipMaintainService;

/**
 * 
 * @author 作者 Aaron Liu:
 * 
 * @version 创建时间：2019年8月13日 下午4:28:37
 * 
 *          类说明
 * 
 */
@Controller
@RequestMapping("/equipment")
public class EquipMaintainController {
	
	@Autowired
	private IEquipMaintainService equipMaintainService;

	
	@RequestMapping(value = "/maintain/deleteMaintainRules", method = RequestMethod.POST)
	public @ResponseBody void deleteMaintainRules(@RequestBody EquipIdsParamBean bean) {
			
		equipMaintainService.deleteMaintainRules(bean.getIds());
	}

	
	@RequestMapping(value = "/maintain/deleteMaintainOrders", method = RequestMethod.POST)
	public @ResponseBody void deleteMaintainOrders(@RequestBody EquipIdsParamBean bean) {
		// TODO Auto-generated method stub
	}

}
